package org.dtrd.modules.food.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.food.entity.po.DtrdExtEmsYwFoodMatching;

/**
 * <p>
 * 配餐:早午晚三餐
 * </p>
 *
 * @author QR
 * @since 2021-12-09
 */
@Getter
@Setter
@ApiModel(value = "配餐:早午晚三餐详情")
public class FoodMatchingDetail {

    private Integer dataId;


    @ApiModelProperty("配餐名称")
    private String matchingName;

    @ApiModelProperty("配餐缩略图")
    private String matchingThumb;

    @ApiModelProperty("是否是加餐:0-否，1-是")
    private String matchingMeal;

    @ApiModelProperty("配餐千卡")
    private Integer matchingKcal;

    @ApiModelProperty("配餐用油")
    private String matchingOil;

    @ApiModelProperty("配餐分类")
    private Integer matchingCategoryid;

    @ApiModelProperty("主食")
    private String matchingFood;

    @ApiModelProperty("菜")
    private String matchingCookbook;

    private String matchingUrl;

    @ApiModelProperty("脂肪/克")
    private String matchingFat;

    @ApiModelProperty("蛋白质")
    private String matchingProtein;

    @ApiModelProperty("膳食纤维")
    private String matchingDf;

    @ApiModelProperty("碳水化合物")
    private String matchingCarbohydrate;

    @ApiModelProperty("胆固醇")
    private String matchingCholesterin;

    public FoodMatchingDetail parseFromPo(DtrdExtEmsYwFoodMatching po) {
        dataId = po.getDataId();
        matchingName = po.getMatchingName();
        matchingThumb = po.getMatchingThumb();
        matchingMeal = po.getMatchingMeal();
        matchingKcal = po.getMatchingKcal();
        matchingOil = po.getMatchingOil();
        matchingCategoryid = po.getMatchingCategoryid();
        matchingFood = po.getMatchingFood();
        matchingCookbook = po.getMatchingCookbook();
        matchingUrl = po.getMatchingUrl();
        matchingFat = po.getMatchingFat();
        matchingProtein = po.getMatchingProtein();
        matchingDf = po.getMatchingDf();
        matchingCarbohydrate = po.getMatchingCarbohydrate();
        matchingCholesterin = po.getMatchingCholesterin();
        return this;
    }
}
